import { takeEvery, call } from 'redux-saga/effects'

import * as API from '../API/index.js'
import * as actions from '../actionTypes/'

export function* getPlayerItem({ payload }) {
	const data = yield call(API.getProjectById, {
		projectId: payload,
	})
	console.log(data)
}

export default function* watchPlayers() {
	yield takeEvery(actions.GET_PLAYER_ITEM, getPlayerItem)
}



// WEBPACK FOOTER //
// ./src/sagas/player.js